# -*-coding:utf-8-*-
# Created by ccp on 2018/5/16.

import sys


def read_input(files):
    # fileHandle = open('english_word.txt')
    # files = fileHandle.readlines()
    for line in files:
        yield line.split()
    # fileHandle.close()


def main():
    data = read_input(sys.stdin)
    for words in data:
        for word in words:
            print("%s%s%d" % (word.lower(), '\t', 1))


# a 1
# b 1
# c 1

if __name__ == '__main__':
    main()
